﻿using chihuopig.DTO;
using chihuopig.Model;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace chihuopig.IService
{
    public interface IAuthorization : IBaseService<jurisdiction>
    {
        Task<List<RoleModel>> GetTable();

        Task<int> RoleAdd(roleaddVefiyDTO model);

        Task<RoleModelDTO> FindRoleModelDTO(long RoleId);

        Task<jurisdictionModel> GetjurisdictionById(long Id);

        /// <summary>
        /// 分页
        /// </summary>
        /// <param name="pageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="Totalout"></param>
        /// <returns></returns>
        Task<List<jurisdictionMenuDTo>> GetPage(int pageIndex, int PageSize);
    }
}
